import {Button, Popconfirm} from "antd";

const Index=({record,cancebook})=>{
    return <>
        <Popconfirm
            title="你确定要取消本次预约吗？"
            onConfirm={() => cancebook(record)}
            okText="确定"
            cancelText="取消">
            <Button  type="primary" className={'button-default'} size={'small'}>
               取消预约
            </Button>
        </Popconfirm>
    </>
}
export default Index;